﻿using BCGM.MedicalWisdom.IServices.BASE;
using BCGM.MedicalWisdom.Model.Models;
using BCGM.MedicalWisdom.Model.ViewModels.Order;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCGM.MedicalWisdom.IServices.Orders
{
    /// <summary>
    /// IDrugClassifyservices
    /// </summary>
    public interface IDrugclassifyServices:IBaseServices<Drugclassify>
    {
        /// <summary>
        /// sql语句药品分类订单显示查询
        /// </summary>
        /// <param name="sql"></param>
        /// <param name="parameters"></param>
        /// <returns></returns>
        Task<List<DrugclassifyDto>>  GetDrugclassifies(string ClassIfyName);
        /// <summary>
        /// 药品分类添加购物车信息
        /// </summary>
        /// <param name="carDto"></param>
        /// <returns></returns>
        bool AddDrugRedis(DrugclassifyDto  drugclassifyDto);
        List<DrugclassifyDto> QueryByname(string ClassIfyName);

        /// <summary>
        /// 获取药品购物车信息
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        //List<DrugclassifyDto> GetDrugCarRedis(string ClassIfyName);
        //Task<DrugclassifyDto> QueryByname(string classIfyName);
    }
}
